from selenium.webdriver.common.by import By

from page.base import Base

class Login(Base):
    def login(self,user,pwd):
        # 输入账号信息
        self.input(By.ID,"com.http.user:id/et_phone",user)
        self.input(By.ID,"com.http.user:id/et_pwd",pwd)
        # 点击登录
        self.click(By.ID,"com.http.user:id/btn_login")
        return self